[Ubuntu 16.04][OpenCV 3.4.2]pylint检测错误
利用opencv
源码编译好python
库后,配置在anaconda
包中,在vscode
上编辑python
文件,出现如下问题:
Module 'cv2' has no 'imread' member
Module 'cv2' has no 'imshow' member
Module 'cv2' has no 'waitKey' member
参考:
【阿修】Python:解决vscode中pylint提示E1101:Module 'cv2' has no 'imshow' member
修改工程配置文件.vscode/settings.json
,添加
"python.linting.pylintArgs": ["--generate-members"]
就可以避免错误提示了